﻿@model CardInChina.Data.Entity.Entity.CardInfo
<div id="@Model.CardInfoID">
    <span class="products_pic"><a href="@Url.Action("Index", "CardDetail", new { cardKey = Model.CardKey })">
        <img src="/content/images/photo/@Model.Photo" alt="@Model.CardKey" /></a></span>
    <div class="products_info">
        <ul>
            <li class="products_name">@Html.ActionLink(Model.CardName, "Index", "CardDetail", new { cardKey = Model.CardKey }, null)</li>
            <li id="@Model.CardInfoID">
                <select class="products_name_chose" uu="chose1">
                    <option value="1">美元</option>
                    <option value="2">加元</option>
                    <option value="3">英磅</option>
                    <option value="4">欧元</option>
                    <option value="5">澳元</option>
                    <option value="6">日元</option>
                    <option value="7">新元</option>
                    <option value="8" selected="selected">人民币</option>
                </select>
                <br />

                @(Html.Telerik().DropDownList()
                        .Name("currency_" + Guid.NewGuid().ToString())
                        .Items(p =>
                        {
                            p.Add().Text("欧元").Value("EUR");
                            p.Add().Text("美元").Value("USD");
                            p.Add().Text("人民币").Value("RMB");
                        })
                        .HtmlAttributes(new { style = "width:90px;margin:0px" })

                )

            </li>
        </ul>
    </div>
    <div class="products_arrow">
        <ul>
            @if (Model.OfCards != null)
            {
                int count = 0;
                for (int i = 0; i < Model.OfCards.Count(); i++)
                {
                    var card = Model.OfCards.ElementAt(i);
                    if (card.OnSale)
                    {
                        string good_type = CardInChina.Data.Entity.Entity.CardInfo.ConvertGoodType(card.GoodsType);
                        if (count != 0)
                        {
                <li class="products_arrow_dashed"></li>    
                        }                     
                <li>
                    <table>
                        <tbody>
                            <tr>
                                <td width="220" id="@card.CardID">
                                    <p class="products_arrow_name">
                                        @card.CardMemo @good_type - @card.Miane</p>
                                    <p class="products_arrow_price">
                                        会员价: <span class="commonprice">@card.Price</span><span class="products_arrow_price1">人民币</span>
                                        VIP价: <span class="vipprice">@card.VIPPrice</span><span class="products_arrow_price1">人民币</span></p>
                                </td>
                                <td width="250">
                                    <p>
                                        @Html.ActionLink(" ", "Index", "Purchase", new { commodity = Model.CardKey, type = card.CardKey }, new { @class = "products_arrow_ui1 ui-icons purchaseB" })
                                        <a class="products_arrow_ui2 ui-icons mesWindow" href="">
                                        </a>
                                        @Html.ActionLink(" ", "Express", "Purchase", new { commodity = Model.CardKey, type = card.CardKey }, new { @class = "products_arrow_ui3 ui-icons" })
                                    </p>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </li>
                        count++;
                    }

                }
            }
        </ul>
    </div>
    <div class="products_arrow_solid">
    </div>
</div>
